package com.atguigu.gmall.order.service;

import com.atguigu.gmall.model.order.OrderDetail;
import com.atguigu.gmall.model.order.OrderInfo;

/**
 * @author wk
 * @create 2021-09-10 23:22
 */
public interface OrderService {
    boolean hasStock(OrderDetail orderDetail);

    Long saveOrder(OrderInfo orderInfo);

    void cancelOrder(Long orderId);

    OrderInfo getOrderInfo(Long orderId);
}
